package com.rain.example.verifyPermissions.models.business;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author rain
 * @since 2024-07-31
 */
@Getter
@Setter
@TableName("business")
@ApiModel(value = "Business对象", description = "")
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商家id")
    @TableId(value = "business_id",type = IdType.ASSIGN_ID)
    private String businessId;

    @ApiModelProperty("商家名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("吃后评价")
    @TableField("evaluation")
    private String evaluation;

    @ApiModelProperty("评分，满分五分,保留小数点后一位")
    @TableField("score")
    private Short score;

    @ApiModelProperty("直线距离")
    @TableField("distance")
    private String distance;

    @ApiModelProperty("经度")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty("纬度")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty("删除标志")
    @TableField("deleteFlag")
    @TableLogic
    private Integer deleteFlag;
}
